package com.ellricky.baselib.widget;

import android.app.Activity;
import android.graphics.drawable.Animatable;
import android.view.View;
import android.widget.ImageView;

import com.bigkoo.convenientbanner.holder.Holder;
import com.ellricky.baselib.R;
import com.ellricky.baselib.util.GlideUtil;

/**
 * Created by Sai on 15/8/4.
 * 网络图片加载例子
 */
public class NetWorkImageHolderView extends Holder<String>{

    private Activity activity;
    private ImageView ivPic;

    public NetWorkImageHolderView(Activity activity,View itemView) {
        super(itemView);
        this.activity = activity;
    }

    @Override
    protected void initView(View itemView) {
        ivPic = itemView.findViewById(R.id.ivPic);
    }

    @Override
    public void updateUI(String data) {
        GlideUtil.into(activity,data,ivPic);
    }
}
